import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Scanner;

public class FileDriver {

	public static void main(String[] args) throws MalformedURLException,
			IOException {
		/*
		 * System.out.println("Enter input");
		 * 
		 * Scanner input = new Scanner(System.in);
		 * 
		 * String result = "";
		 * 
		 * while (result.equals("done") == false) { result = input.nextLine();
		 * System.out.println("You said: " + result); }
		 */

/*		Scanner camosun = new Scanner(new URL("http://camosun.ca").openStream());
		while (camosun.hasNextLine()) {
			String aLine = camosun.nextLine();
			System.out.println(aLine);
		}*/
		
		
		String arguments = "name=fred socialInsurance=656234121";
		
		Scanner lineScan = new Scanner(arguments);
		
		while(lineScan.hasNext()) {
			String something = lineScan.next();
			splitWordOnEquals(something);
		}
	}
	
	private static void splitWordOnEquals(String aWord) {
		Scanner scan = new Scanner(aWord);
		scan.useDelimiter("=");
		
		String firstWord = scan.next();
		String secondWord = scan.next();
		
		System.out.println(firstWord + " ===  " + secondWord);
	}

}
